<template>
	<view class="">
		<view class="followNav">
			<view class="iconfont icon-iconset0239 icon">
				<text class="photo">随拍</text>
			</view>
			<view class="middle">
				<navigator open-type="switchTab" class="text" :class="{'isActive':styleStatus==follow}" url="/pages/follow/follow">
					关注
				</navigator>
				<navigator open-type="switchTab" class="text" :class="{'isActive':styleStatus==friend}" url="/pages/friend/friend">
					好友
				</navigator>
			</view>
		</view>
		<view class="ground">
			
		</view>
	</view>
</template>

<script>
	export default {
		props:['page'],
		name:"followNav",
		data() {
			return {
				styleStatus:true,
				friend:false,
				follow:true,
			};
		},
		mounted() {
			if(this.page=='friend'){
				console.log(this.page);
				this.follow=false;
				this.friend=true;
			}else{
				console.log(this.page);
				this.follow=true;
				this.friend=false;
			}
		}
	}
</script>

<style>
.followNav{
	width:100%;
	position:fixed;
	top:25px;
	left: 0;
	height:35px;
	line-height: 35px;
	margin:0 auto;
	z-index: 20;
}
.icon{
	position: absolute;
	top:0;
	left: 5px;
	width: 20%;
	color: #fff;
	text-align: center;
	font-size: 20px;
}
.middle{
	text-align: center;
}
.text{
	display: inline;
	color:#fff;
	margin: 0 10px;
	font-size: 15px;
}
.photo{
	text-align: center;
	padding-left: 5px;
	font-size: 13px;
}
.ground{
	width: 100%;
	height:60px;
}
.isActive{
	border-bottom:2px solid #fff;
}
</style>
